package main

import (
	"fmt"
	"io/ioutil"
	"os"
)

func main() {
	dir, err := ioutil.TempDir("", "scratch")
	if err != nil {
		fmt.Errorf("failed to create temp dir: %v", err)
		panic(err)
		os.Exit(1)
	}
	fmt.Println(dir)
	os.RemoveAll(dir)
}
